package com.youbenzi.dockerpool;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import com.youbenzi.dockerpool.factory.JenkinsDockerFactory;

@WebListener
public class PoolListener implements ServletContextListener{

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		DockerPool pool = new DockerPool(new JenkinsDockerFactory());
		pool.init();
	}
	
}
